<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <title><%=@page_title%></title>
  <%= stylesheet_link_tag "didily", :media => "all" %>
</head>
<body>
  <div id="header">
    <a href="/" title="Go to scrumdidilyumptio.us home page"><img src="/images/title.gif" border="0"></a>
    <%if current_user %>
    	<div id="account-control" class="admin">Welcome:
        <span class="green"><%= link_to(current_user.login, user_path(current_user), {:title => "{current_user.login}'s very own personal home page."}) %></span>
        <span class="red"><a href="/signout" title="Sign out of your Scrumdidilyumptious account">Sign Out</a></span>
      </div>
    <%else%>
    	<div id="account-control">
        <span class="green"><a href="/signup" title="Sign up for an account on Scrumdidilyumptious">Sign Up</a></span> :: 
        <span class="red"><a href="/signin" title="Sign in to your Scrumdidilyumptious account">Sign In</a></span>
      </div>
    <%end%>
    <div id="topbar">
      <div class="main-link blue"><%= link_to 'Home', :controller => 'default', :action => 'index' %></div> 
      <div class="main-link green"><%= link_to 'Add Didily', new_didily_path %></div>
      <div class="main-link red"><%= link_to 'Users', users_path %></div>
      <div class="main-link blue"><%= link_to 'Lots of Didily', didilies_path %></div>
      <div class="main-link green"><%=link_to 'Advanced Search', {:controller => 'search', :action => 'index'}, {:title => 'Advanced Search - look for didilies in an advanced way.'}%></div>
    	<div id="search">
    	<% form_tag(:controller => 'search', :action => 'search_results') do %>
        <%= text_field_tag(:form_terms, params[:form_terms], :size => 30, :class => 'input-box', :value => 'enter a url or a relationship to search for', :onClick => "this.value=''") %>
        <%= submit_tag(" Search! ", :class => "input-button") %>
      <% end %>
    	</div>
    </div>
  </div>
  <div id="messages">
    <% for name in [:notice, :warning, :message] %>
      <% if flash[name] %>
        <%= "<div class=\"message\" id=\"#{name}\">#{flash[name]}</div>" %>
      <% end %>
    <% end %>
  </div>
  <div id="content">
    <%= @content_for_layout %>
  </div>
  <div id="footer">
    <a href="/" class="subject">scrumdidilyumptio.us</a> :: 
    <a href="/about" class="subject">about</a> :: 
    <a href="/blog" class="subject">blog</a> :: 
    <a href="contact" class="subject">contact us</a><br />
    bookmark this in <a href="http://del.icio.us/post?v=2&url=http://scrumdidilyumptio.us/&title=It's%20Scrumdidilyumptious!" alt="Bookmark in del.icio.us">delicious</a> 
    or <a href="http://digg.com/submit?phase=2&url=http://scrumdidilyumptio.us/">digg it!</a>
  </div>
</body>
</html>